package com.punch.common.vo.course.temp;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * CoursePageVO-课程下拉列表信息 展示vo
 *
 * @author xiaol
 * @version 1.0.0
 * @since 2020/7/21
 */
@Data
public class SimpleCourseVO implements Serializable {


    @ApiModelProperty(name = "courseId", notes = "课程主键id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long courseId;

    /**
     * 课程名称
     */
    @ApiModelProperty(name = "courseName", notes = "课程名称")
    private String courseName;


    /**
     * 课程适用年级名称  1-6年级多选
     */
    @ApiModelProperty(name = "courseGrade", notes = "课程适用年级名称  1-6年级多选")
    private String courseGrade;

    /**
     * 课时数
     */
    @ApiModelProperty(name = "courseHourCount", notes = "课时数")
    private Integer courseHourCount;
    /**
     * 课时单价：单位分
     */
    @ApiModelProperty(name = "courseHourPrice", notes = "课时单价：单位分")
    @JsonInclude
    private Integer courseHourPrice;

    /**
     * 课时单价：单位元，精度两位小数
     */
    @ApiModelProperty(name = "courseHourPriceShow", notes = "课时单价：单位元，精度两位小数")
    @JsonInclude
    private BigDecimal courseHourPriceShow;
    /**
     * 是否包含教材/教具：勾选框，默认否  0否  1是
     */
    @ApiModelProperty(name = "goodsFlag", notes = "是否包含教材/教具：勾选框，默认否  0否  1是")
    private Integer goodsFlag;


    /**
     * 教材/教具单价
     */
    @ApiModelProperty(name = "goodsId", notes = "商品id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long goodsId;
    /**
     * 教材名称/教具名称
     */
    @ApiModelProperty(name = "goodsName", notes = "商品名称")
    private String goodsName;

    /**
     * 教材/教具单价
     */
    @ApiModelProperty(name = "goodsPrice", notes = "商品单价")
    @JsonInclude
    private Integer goodsPrice;
    /**
     * 教材/教具单价
     */
    @ApiModelProperty(name = "courseMaterialPrice", notes = "商品单价,显示价格")
    private BigDecimal goodsPriceShow;
    /**
     * 是否必须购买：勾选框，默认否    0否  1是
     */
    @ApiModelProperty(name = "buyFlag", notes = "是否必须购买：勾选框，默认否    0否  1是")
    private Integer buyFlag;

}
